package com.itheima.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2020-08-03 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="t_network_disk" )
public class NetworkDisk  implements Serializable {

	private static final long serialVersionUID =  6465385984901941690L;

	/**
	 * 唯一uid
	 */
   	@Column(name = "uid" )
	@Id
	private String uid;

	/**
	 * 管理员uid
	 */
   	@Column(name = "admin_uid" )
	private String adminUid;

	/**
	 * 扩展名
	 */
   	@Column(name = "extend_name" )
	private String extendName;

	/**
	 * 文件名
	 */
   	@Column(name = "file_name" )
	private String fileName;

	/**
	 * 文件路径
	 */
   	@Column(name = "file_path" )
	private String filePath;

	/**
	 * 文件大小
	 */
   	@Column(name = "file_size" )
	private Long fileSize;

	/**
	 * 是否目录
	 */
   	@Column(name = "is_dir" )
	private Long isDir;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_time" )
	private Date updateTime;

	/**
	 * 本地文件URL
	 */
   	@Column(name = "local_url" )
	private String localUrl;

	/**
	 * 七牛云URL
	 */
   	@Column(name = "qi_niu_url" )
	private String qiNiuUrl;

	/**
	 * 上传前文件名
	 */
   	@Column(name = "file_old_name" )
	private String fileOldName;

}
